{"version":3,"sources":["editor-controller.js"],"names":["BX","namespace","UI","EditorFieldSingleEditController","this","_id","_settings","_field","_wrapper","_fieldWrapperHandler","delegate","onFieldWrapperClick","_documentHandler","onDocumentClick","_documentTimeoutHandle","_isInitialized","_isActive","prototype","initialize","id","settings","type","isNotEmptyString","util","getRandomString","_time","Date","toString","prop","get","EntityEditorField","getWrapper","isElementNode","window","setTimeout","bind","isActive","setActive","active","setActiveDelayed","delay","release","unbind","document","saveControl","editor","getEditor","switchControlMode","EntityEditorMode","view","EntityEditorModeOptions","none","e","eventCancelBubble","clearTimeout","create","self","EditorFieldViewController","_timeoutHandle","_pos","x","y","_mouseDownHandler","onMouseDown","_mouseUpHandler","onMouseUp","getElementNode","isHandleableEvent","valueOf","clientX","clientY","Math","abs","switchTo","node","getEventTarget","tagName","getAttribute","findParent","switchToSingleEditMode","EntityEditorController","_editor","_model","_config","_isChanged","getObject","doInitialize","getConfig","getConfigStringParam","name","defaultValue","getString","isChanged","markAsChanged","processControllerChange","rollback","validate","innerCancel","onBeforeSubmit","onAfterSave","onReload","onBeforeSaveControl","data","onBeforesSaveControl"],"mappings":"AAAAA,GAAGC,UAAU,SAGb,UAAUD,GAAGE,GAAGC,kCAAoC,YACpD,CACCH,GAAGE,GAAGC,gCAAkC,WAEvCC,KAAKC,IAAM,GACXD,KAAKE,UAAY,KACjBF,KAAKG,OAAS,KACdH,KAAKI,SAAW,KAEhBJ,KAAKK,qBAAuBT,GAAGU,SAASN,KAAKO,oBAAqBP,MAClEA,KAAKQ,iBAAmBZ,GAAGU,SAASN,KAAKS,gBAAiBT,MAC1DA,KAAKU,uBAAyB,EAE9BV,KAAKW,eAAiB,MACtBX,KAAKY,UAAY,OAElBhB,GAAGE,GAAGC,gCAAgCc,WAEpCC,WAAY,SAASC,EAAIC,GAExBhB,KAAKC,IAAML,GAAGqB,KAAKC,iBAAiBH,GAAMA,EAAKnB,GAAGuB,KAAKC,gBAAgB,GACvEpB,KAAKE,UAAYc,EAAWA,KA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